package com.tpsix.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 菜单树
 */
@Data
public class Tree<T> implements Serializable {

    private int id;
    private String text;
    private Map<String, Object> state;
    private boolean checked = false;
    private Map<String, Object> attributes;
    private List<Tree<T>> children = new ArrayList<>();
    private int parentId;
    private boolean hasParent = false;
    private boolean hasChildren = false;

}
